<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "iliketry.sms_new_status".
 *
 * @property integer $task_id
 * @property string $cell
 * @property string $status
 * @property string $sent_time
 * @property string $add_time
 * @property string $sms_company
 */
class SmsStatus extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'iliketry.sms_new_status';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['task_id', 'cell'], 'required'],
            [['task_id'], 'integer'],
            [['sent_time', 'add_time'], 'safe'],
            [['cell'], 'string', 'max' => 11],
            [['status'], 'string', 'max' => 20],
            [['sms_company'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'task_id' => 'Task ID',
            'cell' => 'Cell',
            'status' => 'Status',
            'sent_time' => 'Sent Time',
            'add_time' => 'Add Time',
            'sms_company' => '供应商',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\SmsStatusQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\SmsStatusQuery(get_called_class());
    }
}
